<?php
	function tkMaNhaSanXuat(){
		$mysql_str=mysql_query("Select * From nhasanxuat");
				  	if(mysql_num_rows($mysql_str)>0){
						while($rows=mysql_fetch_array($mysql_str)){
							echo "<option value='".$rows['MaNhaSanXuat']."'>".$rows['TenNhaSanXuat']."</option>";
						}
					}
	}
	
	function tkNhaSanXuat(){
		$mysql_str=mysql_query("Select * From nhasanxuat");
				  	if(mysql_num_rows($mysql_str)>0){
						while($rows=mysql_fetch_array($mysql_str)){
							echo "<option value='".$rows['MaNhaSanXuat']."'>".$rows['TenNhaSanXuat']."</option>";
						}
					}
	}
	
	function tkGia(){
		$mysql_str=mysql_query("Select * From khoanggia");
				  	if(mysql_num_rows($mysql_str)>0){
						while($rows=mysql_fetch_array($mysql_str)){
							echo "<option value='".$rows['MaGia']."'>".$rows['KhoangGia']."</option>";
						}
					}
	}
	
	function tkHeDieuHanh(){
		$mysql_str=mysql_query("Select * From hedieuhanh Where MaHeDieuHanh <> '1'");
				  	if(mysql_num_rows($mysql_str)>0){
						while($rows=mysql_fetch_array($mysql_str)){
							echo "<option value='".$rows['MaHeDieuHanh']."'>".$rows['TenHeDieuHanh']."</option>";
						}
					}
	}
?>



